package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

public abstract class AbstractReportFactory {
	public static AbstractReportFactory getFactory(String rType)
	{
		if(rType.equals("JSON"))
		{
			return new JSONFactory();
		}
		else
		{
			return new XMLFactory();
		}
	}
	
    public abstract ReportBody getBody();
    public abstract ReportFooter getFooter();
    public abstract ReportHeader getHeader();

}
